package top.xiaoshuaila.searescue.controller;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@Controller
public class LoginController {
    @GetMapping ("/")
    public String hello1(Model model){
        model.addAttribute("asf","COM 1");
        return "index";
    }
    @GetMapping ("/hello2")
    public String hello2(){
        return "index";
    }
    @GetMapping ("/hello3")
    public String hello3(){
        return "test";
    }
}
